<template>
    <div class="not-found">
        <h1>404 - 页面未找到</h1>
        <p>
            <span> 你访问的页面不存在或者权限不足，请检查 URL 或 </span>
            <el-button type="primary" link @click="goBack"> 返回 </el-button>。
        </p>
    </div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router';
const router = useRouter();
const goBack = () => {
    router.back();
};
</script>
<style lang="scss" scoped>
.not-found {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    p {
        display: flex;
        align-items: center;
    }
}
h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}
</style>
